package cn.touna.jss.common.util;

/**
 * 正则表达式常量
 * Created by Steve.Tao on 2017/8/18.
 */
public abstract class PatternConstants {

    /**
     * 字母，数字
     */
    public static final String ALPHA_NUMERIC = "^[A-Za-z0-9]+$ ";
//    /**
//     *手机号码或者固定电话号码
//     */
//    public static final String MOBILE_TELEPHONE = "";

    /**
     * 身份证号，15位或者18位
     */
    public static final String ID_CARD = "^(\\d{15,15}|\\d{18,18}|\\d{17}(\\d|X|x))";

    /**
     * 手机号码
     */
    public static final String MOBILE = "^1[34578]\\d{9}$";

    /**
     * 固定电话号码
     */
    public static final String TELEPHONE = "^(0[0-9]{2,3})?-?([2-9][0-9]{6,7})+(/-[0-9]{1,4})?$";// "^(0\\d{2}-\\d{8}(-\\d{1,4})?)|(0\\d{3}-\\d{7,8}(-\\d{1,4})?)$";
    /**
     * IP地址
     */
    public static final String IP = "((?:(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d))";


}
